print("n*n乘法表")

i = 0
n = int(input("请输入n:"))
while i <= n-1:
    i += 1
    j = 1
    print("\n",end="")#相当于print("")
    while j <= i:
    
        print("%d*%d=%d\t" %(j, i, i*j),end="")
        j+=1

# print("九九乘法表")
# def multiply(x, y):
#     z = x*y
#     return z
# i = 0
# while i <= 8:
#     i += 1
#     j = 1
#     print("")
#     while j <= i:
#         k = multiply(x=i, y=j)
#         print("%d*%d=%d\t" % (j, i, k,), end="")
#         j += 1